﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Arich;
using NUnit.Framework;
namespace WorkflowUnitTest {
    [TestFixture]
    public class FileIOTest {
        [Test]
        public void AccessMMCFileTest( ) {
            string filePath = @"E:\tmp\Manager\TestMergeImage\ResearchPDFCharts2\3280\232.mmc";
            using (var fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read)) {
                Console.Write(fileStream.Length);
            }
        }

        [Test]
        public void AccessMMCFileTest2( ) {
            Console.WriteLine(Environment.UserName);

            string filePath = @"E:\tmp\Manager\TestMergeImage\ResearchPDFCharts2\3280\232.mmc";
            using(FileStream mmcStream = File.Open(filePath, FileMode.Open)) {
                Console.Write(mmcStream.Length);
            }
        }

    }
}
